<div class="ciudades index">
<h2><?php echo __('Ciudades');?></h2>
	<table cellpadding="0" cellspacing="0" background="black">
	<tr>
		<th><?php echo $this->Paginator->sort('pais_id');?></th>
		<th><?php echo $this->Paginator->sort('estado_id');?></th>
		<th><?php echo $this->Paginator->sort('alias');?></th>
		<th><?php echo $this->Paginator->sort('nombre');?></th>
		<th class="actions"><?php echo __('Acciones');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($ciudades as $ciudad): ?>
	<tr>
		<td><?php echo h($ciudad['Pais']['nombre']); ?>&nbsp;</td>
		<td><?php echo h($ciudad['Estado']['nombre']); ?>&nbsp;</td>
		<td><?php echo h($ciudad['Ciudad']['alias']); ?>&nbsp;</td>
		<td><?php echo h($ciudad['Ciudad']['nombre']); ?>&nbsp;</td>
		<td class="actions">
			<?php //echo $this->Html->link(__('Ver'), array('action' => 'view', $ciudad['Ciudad']['id'])); ?>
			<?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $ciudad['Ciudad']['id'])); ?>
			<?php echo $this->Form->postLink(__('Eliminar'), array('action' => 'delete', $ciudad['Ciudad']['id']), null, __('Are you sure you want to delete # %s?', $ciudad['Ciudad']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('{:count} Registros, Página {:page} de {:pages}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('atras'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('siguiente') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
	<div class="actions">
		<li><?php echo $this->Html->link(__('Agregar Ciudad'), array('action' => 'add')); ?></li>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Acción'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Regresar'), array('action' => 'add')); ?></li>
		<li><?php //echo $this->Html->link(__('Lista de Paises'), array('controller' => 'paises', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('Agrega Pais'), array('controller' => 'paises', 'action' => 'add')); ?> </li>
		<li><?php //echo $this->Html->link(__('Lista de Estados'), array('controller' => 'estados', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('Agrega Estado'), array('controller' => 'estados', 'action' => 'add')); ?> </li>
	</ul>
</div>